package cl.golive.d2menu.bll;

import cl.golive.d2menu.dal.PlatoDAL;
import cl.golive.d2menu.obj.Plato;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author whyem
 */
public class OBJPlato {

    private PlatoDAL platoDAL;

    public OBJPlato() throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException, SQLException {
        this.platoDAL = new PlatoDAL();
    }

    public List<Plato> traerPlatosPorCategoria(int categoriaId) throws SQLException {
        return platoDAL.traerPlatosPorCategoria(categoriaId);
    }


}
